# -*- mode: snippet -*-
# name: sprintf
# contributor: joaotavora
# key: sprintf
# --
sprintf ("${1:%s}\\n"${1:$(if (string-match "%" yas-text) "," "\);")
}$2${1:$(if (string-match "%" yas-text) "\);" "")}